<%@ page contentType="text/html;charset=utf-8" isELIgnored="false" %>
<%@ include file="/head.jsp" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" >
<head>
    <title>拍照</title>
    <script language="javascript" type="text/javascript">
    function InitControl()
    {
     var  imageControlGY=document.getElementById("imageControlGY");
     var strErrorMessage="";
     strErrorMessage= imageControlGY.InitControl("C:\\ImgFiles\\Temp",420,500,1600,1200,800,600,"C:\\Windows\\System32\\PandaCameraLibraryDLL.dll");   
       alert(strErrorMessage);
    }
    
    function ResetControl()
    {
       var  imageControlGY=document.getElementById("imageControlGY");
       var strErrorMessage="";
       strErrorMessage=imageControlGY.ResetControl();     
        alert(strErrorMessage);       
    }
    function GetCheckedImageList()
    {
       var  imageControlGY=document.getElementById("imageControlGY");
       var strImages=imageControlGY.GetCheckedImageList();
       alert(strImages);
       window.returnValue = strImages;
       DisposeResource();
       window.close();
    }
    function DisposeResource()
    {
       var  imageControlGY=document.getElementById("imageControlGY");
       imageControlGY.DisposeResource();
    }
    </script>
</head>
<body>
<object id="imageControlGY" classid="CLSID:FE2FE30F-FF9E-4BB3-839B-88BDF25E9584" width="800" height="600"></object><br/>
<input type="button" value="初始化" id="btnInit" onclick="InitControl()"/>
<input type="button" value="重置" id="btnReset" onclick="ResetControl()" />
<input type="button" value="btnGetCheckedImageList" id="btnGetCheckedImageList" onclick="GetCheckedImageList()" />
</body>
</html>